package Levels;

import java.awt.Image;
import java.util.ArrayList;

import Game.Character;
import Game.Collision;
import Game.Dude;
import Game.Entity;
import Game.ImageLoader;
import Game.IndexCounter;
import Game.Portal;
import Game.Projectile;
import Game.Sprite;
import Game.Wall;

public class Objects {
	static Image wallImage=ImageLoader.getImg().getImage("data/images/objects/brick_wall.png");
	static Image bushImage=ImageLoader.getImg().getImage("data/images/objects/hedge_ver.png");
	static Image portalImage=ImageLoader.getImg().getImage("data/images/objects/portals/portal_1.png");
	static Image portalImage2=ImageLoader.getImg().getImage("data/images/objects/portals/portal_2.png");
	static Image portalImage3=ImageLoader.getImg().getImage("data/images/objects/portals/portal_3.png");
	static Image portalImage4=ImageLoader.getImg().getImage("data/images/objects/portals/portal_4.png");
	static Image ButtetImage=ImageLoader.getImg().getImage("data/images/objects/redbird.png");
	static Image batImage1=ImageLoader.getImg().getImage("data/images/enamies/bat_1.png");
	static Image batImage2=ImageLoader.getImg().getImage("data/images/enamies/bat_2.png");
	static ArrayList<Image> wallArray=new ArrayList<Image>();
	static ArrayList<Image> wall2Array=new ArrayList<Image>();
	static ArrayList<Image> portalArray=new ArrayList<Image>();
	static ArrayList<Image>	bulletArray=new ArrayList<Image>();
	public static ArrayList<Image> batArray=new ArrayList<Image>();
	static Sprite wallSprite;
	static Sprite wall2Sprite;
	static Sprite portalSprite;
	static Sprite bulletSprite;
	public static Sprite batSprite;
	static Wall wall;
	static Wall bush;
	static Wall wall2;
	static Portal port;
	public static ArrayList<Entity> objects=new ArrayList<Entity>();
	public static ArrayList<Dude> chars=new ArrayList<Dude>();
	public static ArrayList<Projectile> projectiles=new ArrayList<Projectile>();
	public static ArrayList<Portal> portals=new ArrayList<Portal>();
	public static Dude dev;
	static IndexCounter devIndex;
	static IndexCounter portalIndex;
	static Character character=new Character();
	public Objects(){
		dev=new Dude(character.LinkStandingDown,character.LinkStandingDown.getID(),170,200);
		devIndex=new IndexCounter(1,3);
		wallArray.add(wallImage);
		wall2Array.add(bushImage);
		portalArray.add(portalImage);portalArray.add(portalImage2);portalArray.add(portalImage3);portalArray.add(portalImage4);
		bulletArray.add(ButtetImage);
		batArray.add(batImage1);
		batArray.add(batImage2);
		wallSprite=new Sprite(wallArray,1);
		wall2Sprite=new Sprite(wall2Array,1);
		portalSprite=new Sprite(portalArray, 1);
		bulletSprite=new Sprite(bulletArray,1);
		batSprite=new Sprite(batArray,1);
		wall=new Wall(wallSprite,1,250,50){};
		bush=new Wall(wall2Sprite,1,335,55){};
		wall2=new Wall(wallSprite,1,250,225){};
		portalIndex=new IndexCounter(portalArray.size(),5);
		port=new Portal(portalSprite,1,420,145);
		port.setDestanation("level_2");
		bush.setHardness(1);
		chars.add(dev);
		objects.add(bush);
		objects.add(wall);
		objects.add(wall2);
	}
}
